package com.guide.spzx.manager.mapper;

import com.guide.spzx.model.entity.product.Category;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Auther: fengyj
 * @Date: 2023/11/3
 * @Description: IntelliJ IDEA
 * @version:
 */
@Mapper
public interface CategoryMapper {
    public abstract List<Category> selectByParentId(Long parentId);
    public abstract int countByParentId(Long id);
    public abstract List<Category> selectAll();

    public abstract void batchInsert(List<Category> categoryList);
}
